php forum
php mysql forum
php mysql smarty
 
Page 1 of 4 1 2 3 4 >
Topic Options
#266806 - 01/13/04 10:51 PM Beta-[6.4] Eventspal.php v1.0-5
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Mod Name / Version: Eventspal.php v1.0 <br /> <br />Description: Ok I can now <br /> <br />Get Yearly public dates and filter them correctly even recurring yearly <br /> <br />Get Monthly public dates and filter them correctly even recurring Monthly <br /> <br />Get Birthdates and filter them correctly <br /> <br />Lastly I can now get dates from the post table and calendar according to usergroup. <br /> <br />Added a check so that if you have no events, it will spit out so. <br /> <br />Working Under: UBB.Threads 6.4 and 6.4.1 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: IIP because you will not authenicated without it unless you add a function for that. <br /> <br />Author(s): scroungr <br /> <br />Date: 01/13/04 <br /> <br />Credits: David Lozier for original IIP, Joshpet for updating IIP <br /> <br />Files Altered: eventspal.php <br /> <br />New Files: eventspal.php <br /> <br />Database Altered: No <br /> <br />Info/Instructions: Just change extension from .txt to .php upload this into the pals directory and overwrite existing eventspal.php and set the variables <br /> <br />// Setable variables <br /> <br />// should admins/mods see all dates <br />// 0 - yes <br />// 1 - no <br /> $adminmodshow = '1'; <br /> <br />// should all events for a given date show under one date <br />// 0 - yes <br />// 1 - no <br />$showdatesunderone = '0'; <br /> <br />// show Group Dates on events pal <br />// 0 - Show Seperately Below the Events under a Group Heading <br />// 1 - Show Mixed in with the Events <br />// 2 or other means won't show at all <br /> $groupshow = '0'; <br />// show all Group Dates or just the users in events pal <br />// 0 - Show all dates for okay board's for all <br />// 1 - Show all dates for okay board's just for user <br /> $showallgroupdates = '1'; <br /> <br />// show Birth Dates on events pal <br />// 0 - Show Seperately Below the Events under a Birthday Heading <br />// 1 - Show Mixed in with the Events <br />// 2 or other means won't show at all <br /> $birthdayshow = '2'; <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
105068-eventspal.zip (59 downloads)



Edited by scroungr (05/23/04 04:39 PM)
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266807 - 01/13/04 10:54 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
if someone with a buset sight with alot of users and alot of events can try this I would appreciate it. it works fine on my site..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266808 - 01/13/04 11:20 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Very cool scroungr, nice job. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Will definitely be testing this out once I'm finished hacking away on my upgrade. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#266809 - 01/14/04 12:02 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: ]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I can view the events for a private forum when I am not logged in (although when I click the event it does not show any details) is this by design or is it a bug?

Top
#266810 - 01/14/04 07:28 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
thats what I needed to know.. try and clear your cookies when your not logged in and see if you can see the same.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266811 - 01/14/04 12:19 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
Yep I can still see them when I have no cookies on the computer at all.

Top
#266812 - 01/14/04 03:38 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
damn ok thanx...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266813 - 01/14/04 03:38 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
think it has to do with the $users['U_Group'];
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266814 - 01/15/04 12:07 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay this is fixed now.. had a logi problem.. now it shows all public dates whether they reccur yearly or monthly or never to anyone.. only show private dates to people within the same group as the user whether they reccur yearly or monthly or never and it also shows dates that are entered whether in calendar or events and also shows birthdays..<br /><br />Someone with alot of events and alot of groups please try this..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266815 - 01/15/04 12:40 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
would have been nice if I had put the correct one in there good thing I checked...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266816 - 01/15/04 06:16 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
Ok it checks for login properly now but I can see stuff(topics) for groups that I am not a part of still.

Top
#266817 - 01/15/04 08:05 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I am betting you are part of those groups somewhere or they of yours.... make sure you are not in users just in admin and make sure you and they share no common groups. if say you have and users1 and a users2 group and a third group lets say users3 and a user from users1 is put into users3 he will see all events for all users in users1 and users3 even if there is a user in user2 and user3. Also MODS and ADMIN will see ALL events because they see ALL groups.. create a user and just put him in users2 group and he will only see events for people in users2.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266818 - 01/15/04 02:40 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I can probably put another switch in there so that the admin could choose NOT to see everyone's events?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266819 - 01/15/04 11:25 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I am not sure I follow that hehe.<br />The problem I have with this is that I can see topics for groups that I am not a member of. This makes the event pal usecure for events that are private for say a particulkar group that holds group events. although I can click on the event and get a blank enough information is normally in the title to figureout what is happening.

Top
#266820 - 01/16/04 07:37 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
but your the admin or are you using a user account when you can see that?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266821 - 01/16/04 11:25 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I am admin but I have a lot of boards that I dont monitor, They are private forums for other gaming guilds that use our forums as a place to hang there hat and I only go there if it is absolutely necessary which is almost never. I am not a member of thsoe groups.

Top
#266822 - 01/16/04 01:40 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
yeah but your an admin hence you see it all. So I will have to add a switch that is basically.. if your an admin or a mod do you WANT to see it all <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266823 - 01/18/04 02:05 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK - this is great.<br /><br />A couple of things.<br /><br />Indeed when you login as a regular user, you can see events for forums they don't have access to.<br /><br />I didn't totally wrap my head around all that you did, but I don't see a query to the w3t_Boards table in there, so somewhere along the line, you've got to query the read permissions of the w3t_Baords table and see if whatever forum that event belongs to is seen by this group.<br /><br />This is pretty complicated. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> So I'm not sure exactly how to go about it, but if you study how it's done in the the calendar script, that should give a bit of an idea.<br /><br /><br />One other suggestion, and I'm not sure if it's easily possible. <img src="http://www.ubbdev.com/forum/images/graemlins/crazy.gif" alt="" /> But it would be great for the different event types to get 'grouped' under the date. So that the same date doesn't have to repeate if there are multiple things listed under a day.<br /><br />Wonderful work on this.<br /><br />As soon as this is set, we'll put out 5.4.5 with this inclluded. I'm finishing up some other IIP improvements. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />thanks again!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#266824 - 01/19/04 08:31 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
thanx Josh I will take a look at the code and see what I can do.. and a regular user can only access events of people in his group bur yeah if that user is in another group he sees those also so yeah maybe I will have to look at using that from the w3t_Boards table first prior to figuring out what the user can actually see... I will work on this more this week
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266825 - 01/19/04 08:44 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well actually in my testing, if it helps, I posted an event in a forum only visible to the moderators group - and it was visible when I was logged in as a regular user, but not if I wasn't logged in.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#266826 - 01/19/04 08:46 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok I will have to change the function I am using a bit but yeah I can see where the w3t_Boards should be polled for the ones posted as an event in a post but there is not much can do with ones added to the calendar directly as an event.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266827 - 01/19/04 08:48 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I can just add a check when it grabs the events from the post table that if the user can't view the board it was posted in not to spit it out.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266828 - 01/21/04 10:54 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Okay did some more work on this can someone with alot of groups check this. I made it so you can select whether an admin can see all dates or just his and also did a query at the board level.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266829 - 01/21/04 10:55 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I think the last thing left now is to format it like Josh suggests so that all dates on a specific date will be under one date heading
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266830 - 01/22/04 05:14 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I have aproximately 30 groups on my boards and I tested it with an unregistered user, a user member of all groups and my admin account. This works nicely, Thanks for fixing it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#266831 - 01/22/04 07:33 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay then one last thing and should be set...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266832 - 01/22/04 10:40 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I will also bring up another point with my mod.. since I handle end of the month Events correctly and UBBthreads does not.. If the event is scheduled for the last day of the month say the 31st.. Threads will only show the date if there is 31 days in the month and will not show them if there is less... My mod takes into account there is a last day of the month and it may not be 31...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266833 - 01/22/04 02:44 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
you might want to bring that up to scream at ubbcentral... since it sounds like a bug

Top
#266834 - 01/22/04 03:33 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I looked at their calendar code and unfortunately it isn't a bug... but I will post it
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266835 - 01/22/04 05:00 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
When I just installed this (With default settings), I recieved the following error: <br />Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in .../forum/pals/eventspal.php(79) : eval()'d code on line 1 <br /> <br />What's wrong here ? <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" />

Top
#266836 - 01/22/04 05:20 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 10k]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
try the non-default settings? May be the way your server is configured?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266837 - 01/22/04 05:45 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
actually it could also be the fact you dont have those kind of events what else does the error say.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266838 - 01/22/04 07:13 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay I emptied my tables and I see the error. it only happened when I had no events so I will have to add a check before the sort.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266839 - 01/22/04 07:57 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay try this new one I added a check so that if no events you will get a message and not an error
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266840 - 01/22/04 11:05 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
added the show dates all under one heading.. please try...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266841 - 01/23/04 02:55 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Excuse me for my late answer, but last night it was already pretty late. <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br />Ok, I tried it again and now it works!<br />Indeed I had no events listed yet.<br /><br />How could I change the dateformat to what we are using ?<br />We use DD/MM/YY 10:19 AM<br /><br />Also it would be good if an event could last for more day, but that's something for infopop <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br />(we would like to post exhibitions which have a start & end date).<br /><br />Keep up the good work!

Top
#266842 - 01/23/04 07:33 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 10k]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
you could alter the order it prints out. Look in the for loops at the end where it prints out and exchange the $outputyaddayadda[$i][0] and $outputyaddayadda[$i][1] variables but ONLY in the for loop.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266843 - 01/30/04 11:20 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
mouse over anything important? I never got the thing about Mousing over?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266844 - 02/04/04 05:44 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I run it right out of the box and get this.... <br /> <br />
Code:
Fatal error: Call to a member function on a non-object in /home/drumlin/public_html/threads/pals/eventspal.php on line 230
<br /> <br />Line 230 is: <br /> <br />
Code:
	$sth = $dbh -&gt; do_query($query);
<br /> <br />The query that this tries to run is: <br /> <br />
Code:
		SELECT Bo_Keyword <br />		FROM {$config['tbprefix']}Boards <br />		WHERE $Grouppostsquery <br />		ORDER  BY  Bo_Keyword ASC
<br /> <br />I'm guessing it doesn't like the $Grouppostquery variable?

Top
#266845 - 02/04/04 05:55 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
can you see what it is setting the $grouppostsquery to?...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266846 - 02/04/04 05:58 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
you can see it usually by putting something next to the closing quote in that query so if its "; you can put ss"; and it will spit out the string. You may not have any group only events? Hmm let me know I may have to add a check in it.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266847 - 02/04/04 06:24 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
$Grouppostsquery is set to
Code:
Bo_Read_Perm = '0'
<br /> <br />No wonder it doesn't like it. <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />

Top
#266848 - 02/04/04 06:50 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm ok I just tried the query<br /><br />SELECT Bo_Keyword<br />FROM w3t_Boards<br />WHERE Bo_Read_Perm = '0'<br />ORDER BY Bo_Keyword ASC<br /><br />on two different threads database and I recieved no error can you try that in you phpmyadmin? <br /><br />this is the line that sets it that way<br />if ($Grouppostsquery == ""){$Grouppostsquery = "Bo_Read_Perm = '0'";}<br /><br />and thats only cause there are no groups for the person who is viewing the eventspal because he isn't logged in, but if he logs in and say is in group 4 the query should be<br /><br />SELECT Bo_Keyword<br />FROM w3t_Boards<br />WHERE Bo_Read_Perm LIKE '%-4-%'<br />ORDER BY Bo_Keyword ASC
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266849 - 02/04/04 07:06 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
No error, but I don't understand why it's set to 0. I'm logged-in when I run the script. And when I comment out the line, it just returns the same error to the next line.

Top
#266850 - 02/04/04 07:21 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
so thats also 0 when your logged in hmm ok.. that sheds some light on it..<br /><br />only way for that to set to 0 is if $Grouppostsquery is empty that all relies on these lines..<br /><br />[]<br /> if (!$user['U_Groups']) { $user['U_Groups'] = "-4-"; }<br /> $calGrouparray = split("-",$user['U_Groups']);<br /> $calgsize = sizeof($calGrouparray);<br /> $Usergroupquery = "(";<br /> $Grouppostsquery = "(";<br /> $calg = 0;<br /> $calgroupcheck = 0;<br /> for ($i=0; $i<$calgsize;$i++) <br /> {<br /> if (!preg_match("/[0-9]/",$calGrouparray[$i])) { continue; };<br /> if ($adminmodshow == '0')<br /> {<br /> if ($calGrouparray[$i] == '1')<br /> {<br /> $calgroupcheck = 1;<br /> }<br /> if ($calGrouparray[$i] == '2')<br /> {<br /> $calgroupcheck = 2;<br /> }<br /> }<br /> $calg++;<br /> if ($calg > 1)<br /> {<br /> $Usergroupquery .= " OR ";<br /> $Grouppostsquery .= " OR ";<br /> }<br /> $Usergroupquery .= "`U_Groups` LIKE '%-$calGrouparray[$i]-%'";<br /> $Grouppostsquery .= "`Bo_Read_Perm` LIKE '%-$calGrouparray[$i]-%'";<br /> }<br />[/]<br /><br />so I am wondering if in fact this line $user['U_Groups'] is working for you. I have seen where some servers can get away with that line and some have to actually set it to a number like $user[2] depending on what element in the $user array has placed the groups function. <br /><br />if your willing to try one more thing take any custompal box or heck even this script and somewhere towards the top place this <br /><br />echo $user['U_Groups'];<br /><br />and see if it returns anything.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266851 - 02/04/04 07:32 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
It returns nothing.

Top
#266852 - 02/04/04 07:47 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
thats what I thought. the $user['U_Groups'] is not working for you<br /><br />hmm can you try one last thing.. do a print_r($user); somewhere near the top or in an empty pal and see if you see $user['U_Groups'].. should be around the 14th element. see if you see it whether your logged in or not..<br /><br />my not logged in shows <br /><br />Array ( [U_Username] => [U_PicturePosts] => [U_ShowSigs] => [U_Email] => [U_PictureView] => [U_Status] => [U_Privates] => [U_Name] => [U_Title] => [U_Totalposts] => [U_Visible] => [U_Laston] => [U_Language] => [U_TimeOffset] => [U_Groups] => [U_Picture] => [U_Number] => [U_TimeFormat] => [U_Password] => [U_SessionId] => [U_StyleSheet] => [U_FrontPage] => [U_Banned] => [U_SideBar] => )<br /><br /><br />while my logged in shows values for each element...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266853 - 02/04/04 07:49 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
also make sure you re-download the new zip I just placed up there and try that.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266854 - 02/04/04 09:34 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Code:
print_r($user);
<br /> <br />This returned nothing both logged-in and logged-out. The new file doesn't work for me either. I get this: <br /> <br />
Code:
Fatal error: Call to a member function on a non-object in /home/drumlin/public_html/threads/pals/eventspal.php on line 235

Top
#266855 - 02/04/04 10:02 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay one more thing.. disable the eventspal.php and put the <br />print_r($user); in any other palbox. Let me know what happens because at this point I don't know how your running threads or IIP because everything is based off the array($user).
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266856 - 02/04/04 10:14 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Disable the eventspal? I put the script in an empty pal box. Maybe I'm doing something wrong. How about you attach a file for me to run and I'll tell you what happens? <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />

Top
#266857 - 02/05/04 01:08 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: eslmix]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I sent you a PM. need ya to get rid of my evenetspal and just do a print_r($users) from any other box.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266858 - 02/05/04 08:38 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
I probably missed a setting somewhere...but here is a question or clarification.<br /><br />Events that are added to the calendar via the "Add an Event" button (ie not related to a post) are placed in the w3t_Calendars table.<br /><br />When I run eventspal, everything looks good for me. If I log in as a regular user (non-admin), they cannot see PUBLIC events that were added in this way. Is this correct, or did I miss a switch somewhere?<br /><br />I downloaded the eventspal off of post #1 in this thread.

Top
#266859 - 02/05/04 09:51 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm not sure I will check again tonite. <br /><br />maybe related to <br /><br />// show all Group Dates or just the users in events pal <br />// 0 - Show all dates for okay board's for all <br />// 1 - Show all dates for okay board's just for user <br />$showallgroupdates = '1';
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266860 - 02/05/04 10:28 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Not sure if this will help or not... <br /> <br />#1 - settings I had were as follows, and this is viewing as an ADMIN: <br /> $adminmodshow = '1'; <br /> $groupshow = '0'; <br /> $showallgroupdates = '0'; <br /> $birthdayshow = '0'; <br /> <br />#2 - settings I had were as follows, and this is viewing as an ADMIN: <br /> $adminmodshow = '1'; <br /> $groupshow = '1'; <br /> $showallgroupdates = '0'; <br /> $birthdayshow = '0'; <br /> <br />#3 - same settings as #2 above, but viewing as a regular user. FYI this Regular User is the one that added the "test" event (visible in #2)...but even though he added it, he cannot see it. <br /> <br />Again...not sure if anything is wrong or not, I JUST started looking through the code. Hope this might help.


Attachments
107171-Untitled-4 copy.jpg (25 downloads)



Edited by Medar (02/05/04 10:30 AM)

Top
#266861 - 02/05/04 10:50 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I think you need to turn showallgroupdates = "1" on it works with mine that way I think all group dates is the actual events from the calendar itself

Top
#266862 - 02/05/04 12:41 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: MercAqua]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
With showallgroupdates set to 1....I get the same view as I get with #2 above (with showallgroupdates set to zero).<br /><br />$adminmodshow = '1'; <br />$groupshow = '1'; <br />$showallgroupdates = '1'; <br />$birthdayshow = '0'; <br /><br />This gives me view #2 from above...so I didn't see a visible change.

Top
#266863 - 02/15/04 04:12 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I will get back to looking at this once I finish the pollpal. I am one click away from the poll pal. it can do everything but display without hitting submit twice <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266864 - 02/21/04 06:14 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Okay I have fixed Medar's issue. Can ya retry it not Medar? I left out a array merge in the original.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266865 - 02/21/04 06:24 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
BTW it opens up a popup box of showday.php you can either remove the _blank from the line with showday.php in it or ask me for the popup box I used on my site at www.couch-tomatoe.cc
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266866 - 02/23/04 08:38 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Will try to get this uploaded this afternoon. Mondays are crazy sometimes.<br /><br />Many thanks scroungr! I started to look in here to tinker with it myself...but you know how when you write something you tend to know where the potential issue is a LOT better than if you are just sorting through code?<br /><br />That is where I was...felt like I was reading without my glasses, and figured I would let the pro handle it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#266867 - 02/25/04 10:54 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Ok, two days later, finally got to tinker with this.<br /><br />The issue is now fixed, it works great! I logged in under various people in and out of groups, and events are displaying properly. Cool deal <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />However! (hehe) It seems to be ignoring the $totalevents variable if you do are not part of a group that has private events. Here is what I did.<br /><br />$groupshow = 0. Shows more than $totalevents in the "Upcoming Events" section...whether you are in a private group or not.<br /><br />$groupshow = 1. Shows more than $totalevents in the "Upcoming Events" section, but ONLY if you are not in a private group.<br /><br />$groupshow = 2. Shows more than $totalevents in the "Upcoming Events" section...whether you are in a private group or not.<br /><br />Hope that makes sense. Browsing the code now to see if I can figure it out.<br /><br />Thanks for the work on this.

Top
#266868 - 02/25/04 11:19 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Will take a look tonite. Thanx
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266869 - 02/25/04 04:21 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok try this Medar I forgot two array_slices.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266870 - 02/25/04 11:56 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
fixed another small error. should be almost final.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266871 - 02/26/04 04:08 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Allrighty - the groupshow issue seems to be resolved, that works great.<br /><br />The only issues I could find all have to do with the Javascript event popups. In the Upcoming Events section...the popups do not reference any particular page or event. I thought it had to do with possibly calling /pals/showday.php, so I removed the /pals piece, still did not work.<br /><br />Messing with that a bit. <br /><br />Other than that, there are some minor glitches in the showday popup, and I think that could be eventspal not pushing some correct variables across. But again, I have not looked at it in depth, just tinkered with it.<br /><br />Very close now!

Top
#266872 - 02/26/04 04:24 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
what you do with that showday is entirely up to you. You can just make it open the page itself by altering the line's<br /><br /> echo "','_blank','scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no,width=500,height=400,top=100,left=200');\">";<br /><br />to <br /> echo "','toolbar=no,menubar=no,location=no,directories=no,status=no,width=500,height=400,top=100,left=200');\">";<br /><br /><br />you can also remove the line's echo " title=";<br /><br />you can also just create a box like I have on my site at www.couch-tomatoe.cc<br /><br />that output is entirely up to you. If Josh ever gets around to updating IIP he can include it if he wishes.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266873 - 02/26/04 04:32 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
but if Josh doesn't get moving soon on updating IIP I may have to do it for him.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266874 - 02/27/04 03:40 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I've been waiting for this to get ready. Looks like you're almost there. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> I've got some other fixes and such ready in IIP - so if this is good to go - I'll get it all posted. <br /><br />Good work! <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#266875 - 02/27/04 08:45 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
np would like to include the showdaypal popup I am using so let me know and I will send it to you.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266876 - 02/27/04 10:32 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Going to upload the latest and try some of the popup changes you mentioned scroungr...this will be a nice addition to IIP for the Calendar.

Top
#266877 - 02/27/04 11:31 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
yeah I have a popup I have on my site that pops up using calendar or events.. it use to open the ubbthreads/showday.php but that also sent the header and footer and well... so I created a showdaypal.php without footer and header...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266878 - 05/23/04 03:27 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
scrounger,<br /><br />Two questions:<br /><br />1) When was the attachment on the first post updated last?<br /><br />2) Are you going to include your showdaypal file? The current eventspal links events to that non-existant file.<br /><br />This is a handy pal. I'm just getting ready to roll out my "new and improved" site. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" />

Top
#266879 - 05/23/04 04:35 PM Re: Beta-[6.4] Eventspal.php v1.0 [Re: ]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ah it was all included in the new IIP 5.4.5 so I never bothered. I will update this now though.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266880 - 05/24/04 09:01 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
I downloaded it yesterday and it wasn't in there... That's why I grabbed this one.<br /><br />Hmm, will have to look again when I get home could be I missed a setting, but I did compare the two eventspals and they were nothing alike.

Top
#266881 - 05/24/04 10:04 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: ]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm well I updated this one. the only difference is the settings for this version is listed in this pal and the settings for IIP's is listed in the configpal.php
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#266882 - 05/24/04 10:47 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: 234234]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
I'll take another swing at it when I get home. I've been coding heavily the past two weeks trying to wrap up this project, so I can say I have at least one thing done. It's started affecting my mind... I'm writing code in my sleep again...<br /><br /> <img src="http://www.ubbdev.com/forum/images/graemlins/shiftyeyes.gif" alt="" />

Top
#266883 - 05/25/04 08:12 AM Re: Beta-[6.4] Eventspal.php v1.0 [Re: ]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Chalk this up to user error. <img src="http://www.ubbdev.com/forum/images/graemlins/doah.gif" alt="" /><br /><br />I had downloaded the latest IIP and then proceeded to use the previous version, since they happened to be right next to each other in my threads hacks archive. I was one file off. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Sorry. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
Page 1 of 4 1 2 3 4 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks